#include<stdio.h>

int main()
{
	int a = 2;
	int b = 3;
	int c = 1;
	scanf_s("%d%d%d", &a, &b, &c);
	if (a < b)
	{
		int n = a;
		a = b;
		b = n;
	}
	if (a < c)
	{
		int n = a;
		a = c;
		c = n;

	}
	if (b < c)
	{
		int n = b;
		b = c;
		c = n;
	}
	printf("%d %d %d\n", a, b, c);
	return 0;
}